package com.rzjm.exercise.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rzjm.exercise.common.utils.ExcelColumn;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 筒仓测距设备表
 *
 * @author mr.zhou
 * @email zhouweiNice@163.com
 * @date 2020-12-15 22:36:23
 */
@Data
@TableName("ck_device_range_feed_record")
public class DeviceRangeFeedRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(value = "id",type = IdType.AUTO)
	private Integer id;
	private Integer wxUserId;
	private Integer shopId;
	@ExcelColumn(value = "企业名称",col = 1)
	private String shopName;
	private Integer qrCodeId;
	@ExcelColumn(value = "料口位置",col = 2)
	private String qrCodeName;
	@ExcelColumn(value = "物料名称",col = 3)
	private String feedType;

	private Integer inOrOut;
	@ExcelColumn(value = "物料重量（单位/吨）",col = 5)
	private Double weight;
	private Long sysUserId;

	@ExcelColumn(value = "上报人",col = 6)
	private String sysUserName;

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	private String imgUrl;


	@ExcelColumn(value = "进出类型",col = 4)
	@TableField(exist = false)
	private String inOrOutStr;


	@ExcelColumn(value = "上报时间",col = 7)
	@TableField(exist = false)
	private String createTimeStr;


	@TableField(exist = false)
	private String weightDun;




}
